wordes=input()
counts={}
if wordes !="":
    for word in wordes:
        counts[word]=counts.get(word,0)+1
    print(counts)
else:
    print("{}")